﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ZengShanCha.BLL;

namespace ZengShanCha
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {

        }

        private void button3_Click(object sender, EventArgs e)
        {

            string name=textBox1.Text.Trim();
            string phone = textBox2.Text.Trim();
            string dress = textBox3.Text.Trim();

            if (string.IsNullOrEmpty(name) || string.IsNullOrEmpty(phone) || string.IsNullOrEmpty(dress))
            {

                MessageBox.Show("用户名和密码不能为空！");


            }

            else {
                Advance advance = new Advance();
              

                    advance.Insert2(name, phone, dress);


            }



            ;
        }
    }
}
